package exception;

public class FinallyDemo {
    public static void main(String[] args) {
        try{
            String s = "123";
            System.out.println(s.length());
            return;
        }
        catch (Exception e)
        {
            System.out.println("error");
        }
        finally {//强制执行
            System.out.println("finally");
        }

        System.out.println("endding");
    }
}
